﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site2.Master" CodeBehind="Details2.aspx.vb" Inherits="Prototype1.Details2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style4
        {
            width: 100%;
        }
        .style5
        {
            width: 590px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <p style="width: auto; height: auto; top: 0px; right: auto; bottom: auto; left: auto; clip: rect(0px, auto, auto, auto); padding: 0px; margin: 0px">
        
            <td class="style8">
        
            </td>
            <td class="style8">
            </td>
        
        <tr>
            <td class="style9">
                <table class="style4">
                    <tr>
                        <td class="style5">
                            Post A Comment.....<br />
                            <br />
                            Your Title<br />
                            <asp:TextBox ID="tb_Title" runat="server" Width="318px" 
            style="margin-left: 64px; margin-right: 0px;"></asp:TextBox>
    
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="tb_Title" ErrorMessage="Please Enter"></asp:RequiredFieldValidator>
    
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style5">
                            Add Your Comment<br />
                            <asp:TextBox ID="tb_Comment" runat="server" Height="65px" 
            style="margin-left: 64px" Width="321px" TextMode="MultiLine"></asp:TextBox>
        
        
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="tb_Comment" ErrorMessage="Please Enter"></asp:RequiredFieldValidator>
        
        
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style5">
                            <asp:Button ID="Butt1" runat="server" Text="Submit" Width="92px" 
                style="margin-left: 297px; margin-right: 127px" />
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style5">
     <asp:ImageButton ID="ImgButton1" runat="server" Width="67px" 
            BorderStyle="Outset" ImageUrl="~/Pictures/Like.jpeg" />
        <asp:Image ID="img_Thumb" runat="server" Width="85px" Height="64px" />
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style5">
                            <br />
                            Robot Details</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style5">
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="ID" 
            DataSourceID="SqlDataSource2" Width="107px" BackColor="White" 
            BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" 
        CellPadding="4" Height="55px" 
        style="margin-left: 4px; margin-right: 0px; margin-bottom: 0px">
            <Columns>
                <asp:ImageField DataImageUrlField="Picture">
                    <ControlStyle CssClass="picSizer" />
                </asp:ImageField>
                <asp:BoundField DataField="Robot_Name" HeaderText="Robot_Name" 
                    SortExpression="Robot_Name" />
                <asp:BoundField DataField="Ranking" HeaderText="Ranking" 
                    SortExpression="Ranking" />
                <asp:BoundField DataField="Creator" HeaderText="Creator" 
                    SortExpression="Creator" />
                <asp:BoundField DataField="Wins" HeaderText="Wins" 
                    SortExpression="Wins" />
                <asp:BoundField DataField="Losses" HeaderText="Losses" 
                    SortExpression="Losses" />
                <asp:BoundField DataField="Robot_Description" HeaderText="Robot_Description" 
                    SortExpression="Robot_Description" />
                <asp:BoundField DataField="Weapons" HeaderText="Weapons" 
                    SortExpression="Weapons" />
                <asp:BoundField DataField="Likes" HeaderText="Likes" SortExpression="Likes" />
            </Columns>
            <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
            <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
            <RowStyle BackColor="White" ForeColor="#330099" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
            <SortedAscendingCellStyle BackColor="#FEFCEB" />
            <SortedAscendingHeaderStyle BackColor="#AF0101" />
            <SortedDescendingCellStyle BackColor="#F6F0C0" />
            <SortedDescendingHeaderStyle BackColor="#7E0000" />
        </asp:GridView>
        
        
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style5">
                            <br />
                            Comments</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style5">
        
        <asp:GridView ID="GridView2" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
            DataKeyNames="ID" DataSourceID="SqlDataSource5" style="margin-left: 0px; margin-right: 0px;" Width="80%" 
                Height="200px" BackColor="White" BorderColor="#3366CC" BorderStyle="None" 
                                BorderWidth="1px">
            <Columns>
                <asp:BoundField DataField="Author" HeaderText="Author" 
                    SortExpression="Author" />
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                <asp:BoundField DataField="Comment" HeaderText="Comment" 
                    SortExpression="Comment" />
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
        
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
            </table>
    <p style="width: auto; height: auto; top: 0px; right: auto; bottom: auto; left: auto; clip: rect(0px, auto, auto, auto); padding: 0px; margin: 0px">
        
            &nbsp;<p 
        style="width: auto; height: auto; top: 0px; right: auto; bottom: auto; left: auto; clip: rect(0px, auto, auto, auto); padding: 0px; margin: 0px">
        
            </td>
            <td class="style9">
            </td>
        </tr>
        <tr>
            <td>
                <p style="width: auto; height: auto; top: 0px; right: auto; bottom: auto; left: auto; clip: rect(0px, auto, auto, auto); padding: 0px; margin: 0px">
        
        
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
        
        
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
                &nbsp;
        &nbsp;<p>
        
            </td>
            <td>
                &nbsp;</td>
        </tr>
    
        
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:roboticsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:roboticsConnectionString.ProviderName %>" 
            SelectCommand="SELECT * FROM [mastTable1] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        
         
        <asp:SqlDataSource ID="SqlDataSource5" runat="server" 
            ConnectionString="<%$ ConnectionStrings:roboticsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:roboticsConnectionString.ProviderName %>" 
            SelectCommand="SELECT * FROM [Comments] WHERE ([RobotFCKID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="RobotFCKID" QueryStringField="ID" 
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        
        
        
    <br />
        
         &nbsp;&nbsp;<br /> <br />
       </p>
        
<br /> 
    

        </asp:Content>







